<?php

class User_AddController extends Zend_Controller_Action{
	
	public function addressAction(){
		
		$form = new Custom_Form_Address(array(
			'action'	=>	'/user/add/address',
			'method'	=>	'post'
		));
		
		$request = $this->getRequest();
		if($request->isPost()){
			if($form->isValid($request->getPost())){
				$data = $form->getValues();
			}
		}
		
		$this->view->form = $form;
	}
	public function contactAction(){
		
		$form = new Custom_Form_Contact(array(
			'action'	=>	'/user/add/contact',
			'method'	=>	'post'
		));
		
		$request = $this->getRequest();
		if($request->isPost()){
			if($form->isValid($request->getPost())){
				$data = $form->getValues();
			}
		}
		
		$this->view->form = $form;
	}
	public function paymentAction(){
		
		$form = new Custom_Form_Payment(array(
			'action'	=>	'/user/add/payment',
			'method'	=>	'post'
		));
		
		$request = $this->getRequest();
		if($request->isPost()){
			if($form->isValid($request->getPost())){
				$data = $form->getValues();
			}
		}
		
		$this->view->form = $form;
	}
}